<?php
if (!isset($loginpage)) 
{
    if (!$_SESSION['ingelogd']) 
    {
        header("Location: login.php");
        exit;
    }
} 
else 
{
    if ($_SESSION['ingelogd'] == true) 
    {
        header("Location: index.php");
        exit;
    }
}
require "includes/db.php";
?>

<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Bobsysteem - Android</title>
        <link href="default.css" rel="stylesheet" type="text/css" />
        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAeEKd2fOlzODVgs2cXmBmFhRskU71bb7iuLb63i6s7fl11-3ghBQ3xTUfx2H3h1bQ--Q0C0K7q4GA5g&sensor=false"
        type="text/javascript"></script>
        <script type="text/javascript" src="eshapes.js"></script>
    </head>
    <body onload="initialize()" onunload="GUnload()">
        <div id="body">
            <div id="header">
                <div id="logo">
                    <h1>Bobproject</h1>
                    <h2>Android</h2>
                </div>
                <div id="menu">
                    <ul>
                        <li><a href="index.php">Home</a></li>
                        <li><a href="map.php">Kaart</a></li>
                        <li><a href="handleiding.php">Handleiding</a></li>
                        <li><a href="logout.php">Log uit</a></li>
                    </ul>
                </div>
            </div>
            <div id="page">
                <div id="content">
                    <div id="latest-post" class="post">